package com.bawei.play.api

import com.bawei.common.api.BaseApiServer
import com.bawei.common.entity.SimpleVideoEntity
import com.bawei.network.BaseResponse
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Author: Jason Zhang
 * Date: 2025/2/6
 * Desc: 播放列表API接口
 */
interface PlayServerApi : BaseApiServer {

    //根据Tab类型获取视频列表
    @GET("/videosimple/getSimpleVideoByChannelId")
    suspend fun getSimpleVideoByChannelId(@Query("channelId") channelId: String, @Query("page") page: Int, @Query("pagesize") pageSize: Int): BaseResponse<List<SimpleVideoEntity>>

    //获取推荐视频列表
    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getRecommendSimpleVideo(@Query("page") page: Int, @Query("pagesize") pageSize:Int): BaseResponse<List<SimpleVideoEntity>>

}